import requests

base_url = 'https://www.baidu.com'

response = requests.get(url=base_url)

print(response.status_code)